home *** CD-ROM | disk | FTP | other *** search
/ APDL Eductation Resources / APDL Eductation Resources.iso / programs / database / powerbase / docs / BrowsEdit < prev    next >
Encoding:
Text File  |  1997-05-13  |  29.9 KB  |  569 lines

  1.                      CH 2 - BROWSING AND EDITING
  2.                      ===========================
  3. When you open a database you will normally see two windows. The record
  4. window displays the data record.  The keypad contains buttons for moving
  5. around the database, adding and deleting records, searching for records etc.
  6. It may be toggled between full size and a display of the first two rows of
  7. only. You can also suppress the keypad and put some or all of its buttons on
  8. the record window itself (see 4.2.9).  The sample database !Boxes
  9. illustrates this.  In this chapter we will assume that you are using the
  10. keypad.
  11.  
  12. Both windows may be moved to whatever position on the screen you find most
  13. convenient and the record window may be re-sized.  When you close the
  14. database the position of the keypad and the position and size of the record
  15. window are stored so that they will look the same next time you open the
  16. database.
  17.  
  18. Most of the keypad functions have keystroke equivalents provided by the
  19. numbered function keys (F1−F11) and experienced users might want to use
  20. these instead of the mouse. The relevant keystrokes are given in the text
  21. where appropriate, but note that these are default values and may be
  22. redefined if so desired. (See Appendix B.)
  23.  
  24. 2.1  Subfiles, record numbers and keys
  25. ======================================
  26. Look at the title-bar of the record window. Three pieces of information are
  27. displayed; the subfile number, the record number and the key of the record.
  28. Since we will make frequent reference to these three terms it will be as
  29. well to explain at the outset what each one means.
  30.  
  31. 2.1.1 Subfiles
  32. --------------
  33. Suppose you have a bookshelf, capable of holding 100 books and six
  34. partitions, numbered 0−5, which you can use to divide it into sections.  The
  35. partitions are, to begin with, all stacked together at the left-hand end of
  36. the shelf.  You may leave them like this if you wish and fill up the shelf
  37. with an unbroken run of 100 books. If, however, the books fall into well
  38. defined categories you might prefer to use the partitions to divide the
  39. shelf up. There are no restrictions on where you can place the partitions,
  40. or how many books can fall into each section of shelf, so long as you don’t
  41. exceed a total of 100 books.
  42.  
  43. In a similar way every Powerbase database is able to use up to six subfiles.
  44. When you open the database you are looking at subfile 0 and you might have
  45. no occasion to bother with the others at all.  Like the shelf partitions
  46. subfiles are there for you to use or not use depending on what your
  47. requirements are.  The database remains the same size whether you use one
  48. subfile or all six and the number of records in a subfile is limited only by
  49. the defined size of the database.
  50.  
  51. Suggestions as to when several subfiles might be useful are given later (see
  52. 2.2.4).
  53.  
  54. 2.1.2 Record numbers
  55. --------------------
  56. Every record in the database has a number which specifies its position in a
  57. file called Database. As you step through the records (see 2.2) you will
  58. probably find that the record numbers shown in the title-bar look quite
  59. random.  Record numbers reflect the order in which records were originally
  60. entered into the database, not the order in which you see them while
  61. browsing which is determined by the key.
  62.  
  63. 2.1.3 Key
  64. ---------
  65. A key is a group of letters (or other characters) derived from one or more
  66. of the data fields in a record and used to identify that record.  Of course,
  67. the record number identifies the record in a sense but, as explained above,
  68. record numbers are of limited use because they only reflect the order in
  69. which the data was entered.  Keys, on the other hand, are derived from the
  70. data itself and are stored in a special table called an index.  The keys in
  71. the index are ordered, either alphabetically or numerically and can
  72. therefore be used to examine the records in an order which is related to the
  73. data.
  74.  
  75. A database may have several keys (and indices) based on different fields in
  76. the record but there must be at least one which we call the primary key.
  77. When you come to create a database of your own you will find that Powerbase
  78. insists that you define the primary key before you can use the database but
  79. subsidiary keys may be defined at any time. Whether you use them or not is
  80. up to you.  You can recognise the primary key field by its background which
  81. is pale yellow instead of white like the other data fields.*  Look at the
  82. key field and at the key itself in the title-bar and you should be able to
  83. see that the two are related.
  84.  
  85. 2.2  Moving about the database
  86. ==============================
  87. 2.2.1 Browsing
  88. --------------
  89. Six buttons on the top row of the keypad move you about within the subfile.
  90. From left to right their actions when clicked on with SELECT are:−
  91.  
  92. (1)     First record   (keystroke equivalent Ctrl F1)
  93. (2)     One record back   (F1)
  94. (3)     10 records back − “Fast rewind”  (Shift F1)
  95. (4)     10 records forward − “Fast forward”  (Shift F2)
  96. (5)     One record forward   (F2)
  97. (6)     Last record   (Ctrl F2)
  98.  
  99. The number of records forward or back for actions (3) and (4) is determined
  100. by the number in the writable icon between the associated keypad buttons.
  101. The terms “first”, “last”, “forward” and “backward” refer to the order of
  102. records as determined by the keys in the index. The file wraps around so one
  103. forward from the last record takes you to the first and one back from the
  104. first record takes you to the last. In accordance with RISC OS conventions
  105. clicking with ADJUST instead of SELECT reverses these actions so that ADJUST
  106. over the first button, for instance, takes you to the last record rather
  107. than the first. This allows you to move about the database with fewer
  108. movements of the mouse.
  109.  
  110. The buttons at the start and end of the second keypad row resemble the Play
  111. and Stop buttons of a tape player and it will be convenient to refer to them
  112. by these names. Play starts an automatic run-through of the records and the
  113. last button on the row Stop halts the process. So does closing the record
  114. window. If started with SELECT records are displayed in forward order.
  115. ADJUST displays them in reverse order. You may swap the order at any time by
  116. a further click on Play. The time for which each record remains on screen
  117. may be altered by changing the “Fast forward” interval (see above).
  118.  
  119. Four “bookmark” icons at the bottom of the keypad allow you to mark specific
  120. records for rapid retrieval. Click on one with SELECT  to store the number
  121. of the current record.  A subsequent click with SELECT will return you to
  122. that record.  Click with ADJUST to clear the marker.
  123.  
  124. 2.2.2 Changing keys
  125. -------------------
  126. Two buttons in the middle of the second row of the keypad bear a symbol
  127. resembling a key. They enable you to cycle through the available keys in
  128. opposite directions (Shift F4 and Shift F5 respectively). ADJUST reverses
  129. the action of SELECT. If no subsidiary keys have been defined these will
  130. have no effect. Key fields have their descriptors (labels) a different
  131. colour from the rest so that you can distinguish them.  By default  the
  132. descriptor of an unselected key is blue and that of a selected key − the
  133. currently active key − is red, but bear in mind that these colours are
  134. user-definable (see footnote)
  135.  
  136. 2.2.3 Changing subfiles
  137. -----------------------
  138. Three buttons in the centre of the third row of the keypad have the
  139. following effect when clicked with SELECT:−
  140.  
  141. (1)     Back one subfile   (F4)
  142. (2)     Rotate subfiles   (Ctrl Shift F4)
  143. (3)     Forward one subfile   (F5)
  144.  
  145. (1) and (3) change the current subfile to the previous one in sequence and
  146. the next in sequence respectively. As with the corresponding buttons for
  147. moving from record to record Forward from subfile 5 takes you to subfile 0
  148. and Back from 0 takes you to 5. ADJUST reverses these actions. Rotate
  149. renumbers the subfiles so that subfile 1 is the old subfile 0 etc.  The old
  150. subfile 5 becomes the new subfile 0. Records which were previously in, for
  151. example, subfile 2 will then be found in subfile 3 instead. As this is quite
  152. a drastic change you will be asked to confirm before Powerbase proceeds.
  153.  
  154. 2.2.4 Using more than one subfile
  155. ---------------------------------
  156. A Powerbase database consists, as stated earlier, of six subfiles numbered
  157. 0-5. You may use subfile 0 (which is the one used by default) and ignore the
  158. others if you wish, but there are occasions when users might find subfiles
  159. very useful. If, for example, you are maintaining a set of pupil records in
  160. a school you could assign one subfile to each year. At the end of a school
  161. year the promotion of Year 1 pupils to Year 2, Year 2 to Year 3 etc can be
  162. brought about by a single click on the Rotate button.
  163.  
  164. A more common use of subfiles is to use subfile 0 to hold the main records
  165. and subfile 1 as a dumping ground for records which you want out of the way
  166. but don’t want to lose permanently. Powerbase is used in this way in a
  167. Further Education college where the applications file for a course is built
  168. up in subfile 0. On enrolment day records are updated to reflect students’
  169. actual subject choices and all records for applicants who have not appeared
  170. are moved into subfile 1. The enrolled students in subfile 0 are then
  171. timetabled and class lists are printed. During the first week of the course
  172. there is a trickle of late enrolments which simply involve retrieving the
  173. required records from subfile 1 and reinstating them in subfile 0.
  174.  
  175. The facilities for moving records, singly or in batches, from one subfile to
  176. another are described in 2.4.2 and 2.5.6.
  177.  
  178. 2.2.5 Naming subfiles
  179. ---------------------
  180. You may give subfiles meaningful names. Name subfile, from the Miscellaneous
  181. submenu, leads to a writable menu item into which you may type a name of up
  182. to 20 characters. This then becomes the name of the current subfile and will
  183. be saved on closing the database.
  184.  
  185. 2.3  Searching for a record
  186. ===========================
  187. It’s all very well being able to move about the database like flipping
  188. through the pages of a book but how do we find a specific record?  Powerbase
  189. provides three ways of doing this; you can search for the record by key, by
  190. record number or by using something called a filter.
  191.  
  192. 2.3.1 Searching by key
  193. ----------------------
  194. The icon bearing a record card and a question mark is the Search button
  195. (F8). When clicked with SELECT  a little window opens to the right of the
  196. keypad. Type the key of the required record into the writable icon and
  197. either click on Find or type Return. (To see how the key is constructed from
  198. the key field click MENU over the record window and choose Current key. This
  199. displays a window describing the key structure.)
  200.  
  201. If the key exists in the current index the record will be found and
  202. displayed. If the key doesn’t exist Powerbase bleeps and displays the
  203. nearest matching record with the key field flashing. (If the database is a
  204. small one with keys which differ greatly from record to record then the
  205. displayed record may not look to be very near at all.) If you typed Return
  206. or used SELECT on the Find button the Search window will disappear. If you
  207. want to search repeatedly it is more convenient to have the window stay on
  208. screen and this can be achieved by clicking on Find with ADJUST. If you do
  209. this you will notice that the icon above the Find button displays the number
  210. of matches found.
  211.  
  212. Clicking on the “bump” icons in the Search window allows you to search an
  213. index other than the current one. The index used affects the search only;
  214. clicking the “browse” buttons on the keypad will show you that the current
  215. index has not been changed.
  216.  
  217. A search carried out as described looks only at the current subfile. If you
  218. suspect that the record you require might be lurking in some other subfile
  219. you can force all six to be searched. This can be achieved by using ADJUST
  220. (Shift F8) instead of SELECT on the Search button. When the search window
  221. appears you will see that the All subfiles radio button is selected instead
  222. of This subfile. You can change the selected radio button if you change your
  223. mind when the search window is open.
  224.  
  225. If searching on a numeric key you must enter a number of exactly the right
  226. value. If the key is alphabetic, however, you may use just the first few
  227. letters if they are sufficient to distinguish the key from others.
  228.  
  229. There are two other buttons on the search window. Old retrieves the last key
  230. entered (if any) and Cancel simply removes the window from the screen
  231. without further action.
  232.  
  233. 2.3.2 Searching by record number
  234. --------------------------------
  235. You may type a record number, preceded by # (e.g. #1054) instead of a key.
  236. Provided the record is in use Powerbase will find and display it, regardless
  237. of which subfile it is in. If the record has been deleted or has never been
  238. assigned a “Record not in use” error is generated.
  239.  
  240. 2.3.3 Searching by filter
  241. -------------------------
  242. The Filter switch (Ctrl F8) is in the middle of the last row on the keypad.
  243. Selecting it brings up the Filter window which contains a writable icon into
  244. which you can type a search formula (see 3.3.2).  You should then click on
  245. the Filter button in the Filter window or, alternatively, type Return. The
  246. keypad buttons used for browsing will now only display records which match
  247. the search formula, all non-matching records being filtered out. Deselecting
  248. the Filter switch restores normal keypad operation.
  249.  
  250. 2.4  Editing the database − fundamental operations
  251. ==================================================
  252. 2.4.1 Adding new records
  253. ------------------------
  254. The icon bearing a record card and a plus sign is the Add record button
  255. (F10). Clicking with SELECT displays a blank record for you to fill in. The
  256. subfile number and anticipated record number are shown in the title-bar of
  257. the record window but there is, of course, no key as yet because there’s no
  258. data. The title-bar therefore reads “(New)”. The only field which you must
  259. fill in is the primary key field.  Any or all of the rest (including
  260. subsidiary key fields) may be left blank. You might find that on some fields
  261. pressing certain keys has no effect. This will happen, for example, if you
  262. try to type letters into a field which has been defined as Numeric.
  263.  
  264. If you type into a field which is highlighted in dark green you may get an
  265. error message. These fields only accept certain values which are listed in a
  266. validation table (see 5.2). To see what these values are make sure the caret
  267. is in the relevant field then click on the List values button on the
  268. keypad.*
  269.  
  270. After entering data into a field you can go to the next field in sequence by
  271. pressing either Return or cursor-down⇩. To go back one field use cursor-up⇧.
  272. These cursor keys operate so that attempting to go beyond the last field of
  273. the record takes you to the first field and attempting to go back from the
  274. first field takes you to the last. Pressing Return on the last field of a
  275. record acts rather differently in that it writes the record to disc and
  276. brings up a new blank record for editing, i.e. it duplicates the action of
  277. the Add record button on the keypad. You can, in addition, place the cursor
  278. in any editable field by clicking with SELECT.
  279.  
  280. When you have entered as much of a record as you wish you can click Add
  281. record again for another blank record. The record you have just entered is
  282. automatically written to the file. The same is true if you click on any
  283. other keypad button or close the database altogether. You don’t need to use
  284. the Force update (F3) button to tell Powerbase to write the record.  The
  285. real purpose of this button is to make Powerbase save indices and validation
  286. tables which are stored in memory. Occasional use of the button during a
  287. long working session guards against power cuts or system failure.
  288.  
  289. 2.4.2 Deleting records
  290. ----------------------
  291. The fourth row of the keypad has only three buttons, the middle one of which
  292. has a large dustbin symbol.  This is obviously the Delete button (Ctrl F10)
  293. but what are the others? The left button (F6) moves the displayed record
  294. back one subfile, i.e. if the record is in subfile 1 it will be moved to
  295. subfile 0.  If it is in subfile 0 it will be moved into subfile 5
  296. (“wrap-around” again).  The right button (F7) moves the record forward one
  297. subfile. A record in subfile 5 will be moved into subfile 0.  These buttons,
  298. which we will refer to as Shift back and Shift forward respectively, clearly
  299. don’t delete records at all. We often want to get a record out of our way
  300. but keep open the option of bringing it back again and that’s where these
  301. buttons are really useful. If you have a lot of records in subfile 0 and
  302. want to do a clear-out you can use subfile 1 as a dumping-ground for the
  303. unwanted records. You’re not really deleting them: just removing them from
  304. the subfile you’re working in.
  305.  
  306. It is sometimes useful, especially when shifting a record, to be able to
  307. “follow” it into its new subfile. You can do so by holding down SHIFT while
  308. you click on the Shift forward or Shift back button.
  309.  
  310. The Delete button should only be used when you are sure you want to lose the
  311. record permanently.  As this is quite a drastic action Powerbase will ask
  312. you to confirm it before the record actually disappears.
  313.  
  314. 2.4.3 Altering existing records
  315. -------------------------------
  316. A displayed record may be altered manually without any restrictions other
  317. than those applying to the addition of new records (see 2.4.1). You will be
  318. asked to confirm an alteration which would result in a change to the primary
  319. key. The normal RISC OS conventions for editing writable icons apply, e.g.
  320. Ctrl U to clear the icon. As with new record entries you need do nothing to
  321. make Powerbase save your changes to disc − the process takes place when a
  322. different record is displayed, when a database is closed or when you quit
  323. Powerbase.
  324.  
  325. 2.5  Editing the database − special features
  326. ============================================
  327. 2.5.1 Undoing mistakes
  328. ----------------------
  329. Changes to the record on-screen can be undone provided you haven’t clicked
  330. on Force update (not normally needed anyway) or done anything to cause
  331. Powerbase to display a different record. In other words, you can undo
  332. changes made to the current record as long as it remains on the screen. You
  333. may either undo all the alterations made to the record or only those
  334. relating to specific fields.
  335.  
  336. If you bring up the main menu and choose Undo changes the record will be
  337. returned to the state it was in when you displayed it and before you began
  338. to edit it. To restore an individual fields, click MENU over the field then
  339. go to the Field submenu and choose Undo changes from there.
  340.  
  341. Only ordinary writable fields and check boxes may be restored; you can’t
  342. restore External fields (see 2.6) which is why a warning is normally issued
  343. before deleting such fields.
  344.  
  345. 2.5.2 Using a template
  346. ----------------------
  347. You may want certain fields to be filled in with fixed contents on every new
  348. record to save typing the same thing every time and Powerbase provides a
  349. means of doing this. Call up the main menu, go to the Miscellaneous submenu
  350. and choose Edit template. A blank record is displayed and the window title
  351. says “Enter data which you wish to appear by default on new records”. Type
  352. in the required fixed data then click any of the usual keypad buttons. You
  353. will now find that the “blank” record displayed every time you click Add
  354. record isn’t really blank at all but already contains the data entered in
  355. your template. Note that this feature affects new records only. It doesn’t
  356. have a retrospective effect on existing records.
  357.  
  358. 2.5.3 Using the clipboard
  359. -------------------------
  360. The buttons at the far left and right of the third row of the keypad may be
  361. thought of as Copy to Clipboard (Ctrl C) and Paste from Clipboard (Ctrl V)
  362. respectively. They can save a lot of time when you want to copy data from
  363. one field into another. When you click SELECT on Copy the contents of the
  364. field which owns the caret is stored in memory. Positioning the caret in
  365. another field and clicking on Paste will copy the stored data into the new
  366. field. If the data is too long for the field it will be truncated.
  367.  
  368. Copy and Paste are not limited to copying into another field of the same
  369. record; you may use them to copy data between records or from a record into
  370. a validation table or a dialogue box or, indeed, between any two writable
  371. icons within Powerbase. Data remains on the clipboard until you use Copy
  372. again.
  373.  
  374. 2.5.3.2 Copying an entire record
  375. ································
  376. When a new record contains much of the same information as an existing one
  377. you can save time by copying a whole record and editing the copy. Display
  378. the record you want to copy and then use ADJUST instead of SELECT on the Add
  379. record button (Shift F10). A new record is created only if you alter the
  380. copy.
  381.  
  382. 2.5.4 Choosing the field where editing starts
  383. ---------------------------------------------
  384. When an existing or blank record is displayed Powerbase places the caret in
  385. the first (i.e. lowest-numbered) writable field of the record. This might
  386. not necessarily look like the first if the fields have been placed in
  387. out-of-sequence positions in the window.
  388.  
  389. When going through a database making changes to one or two fields somewhere
  390. in the middle of the record it might be convenient to have the caret start
  391. somewhere else. Click MENU over the field where you wish the caret to start,
  392. go to the Field submenu and choose Start editing. When a record is displayed
  393. the caret will be placed in the chosen field. The same procedure is used to
  394. restore the normal starting position.
  395.  
  396. 2.5.5 Changing many records at once
  397. -----------------------------------
  398. To alter a given field in a set of records point the mouse at the field and
  399. click MENU. Go to the Field submenu and choose Global changes. In the first
  400. writable icon (Replace) enter what you want changing and in the second
  401. (with) enter what you want the field changing to. In the third enter a
  402. search formula specifying which records are to be changed. (See 3.3.3 and
  403. 2.3.3) and click on Change or type Return.
  404.  
  405. Note the following:−
  406.  
  407. •       Only records in the current subfile are affected.
  408.  
  409. •       Replacement only occurs if the new data will fit in the field.
  410.  
  411. •       Leaving Replace blank causes the target field to be replaced in any
  412.         record which matches the search formula, otherwise replacement
  413.         occurs only where the existing field matches the Replace string.
  414.  
  415. •       Leaving with blank causes the target field to be blanked in records
  416.         which match the search formula and in which the target field matches
  417.         the Replace string.
  418.  
  419. •       Leaving the search formula blank causes replacement to occur in all
  420.         records of the current subfile for which the target field matches
  421.         the Replace string.
  422.  
  423. It should be apparent from the above that leaving both Replace and the
  424. Search formula blank will place the with string in all records of the
  425. current subfile.
  426.  
  427. The characters “$” and “#” may be used as “wild-card” characters in the
  428. Replace and with strings.  The first of these is used to represent a group
  429. of characters which don’t need to be matched.  If you:−
  430.  
  431.              Replace $Street with $Road
  432.  
  433. the substitution will be performed on any record which matches the search
  434. formula and where the target field ends with “Street”. The ending will be
  435. changed to “Road” leaving the rest of the string unchanged.  Another example
  436. of use is:−
  437.  
  438.              Replace 47$ with 1047$
  439.  
  440. If the target field begins with “47”, the beginning will be changed to
  441. “1047”. The rest of the field will be unaltered:−
  442.  
  443.              Replace $MPUT$ with $NFUS$
  444.  
  445. would change “MPUT” occurring anywhere in the target field into “NFUS”, e.g.
  446. COMPUTER would become CONFUSER.  You may, of course, use “$” in the middle
  447. of a word:−
  448.  
  449.              Replace re$ment with dis$ed
  450.  
  451. would cause a string in the target field beginning with “re” and ending with
  452. “ment” to have its head and tail replaced with “dis” and “ed”, leaving the
  453. middle unchanged. e.g. “replacement” would become “displaced”.
  454.  
  455. The “#” character is used to represent a single wild-card character and can
  456. replace individual letters in specific positions. The Replace and with
  457. strings must be the same length and should have “#” characters in the same
  458. positions. The characters in the remaining positions are the ones which get
  459. replaced, but only if they occur in the corresponding positions of the
  460. existing field value.
  461.  
  462. You may also use Global changes to perform  simple calculations e.g. “+12”
  463. will add 12 to the current value in the field on all the matching records.
  464. “*5-13” will multiply the current value by 5 and then subtract  13. It is
  465. operations like these which are most likely to produce values which won’t
  466. fit in the field, especially if floating-point numbers are involved. The
  467. operation isn’t limited to Numeric fields, or even to other types of field
  468. consisting wholly of numerals; Powerbase will find the number embedded in an
  469. entry such as “ABC45XYZ” and the operation “+12” would convert it to
  470. “ABC57XYZ”.
  471.  
  472. 2.5.6 Deleting many records at once
  473. -----------------------------------
  474. Choosing the Move/delete choice on the Miscellaneous submenu opens a window
  475. which displays the same three icons as those on the Delete, Shift forward
  476. and Shift back Buttons. Here, however, they are merely for identification.
  477. It’s the radio buttons beneath them determine what will happen to the
  478. records, and the default setting is for Shift forward. Type a search formula
  479. (see 3.3.3 and 2.3.3) and click Move or type Return. All matching records in
  480. the current subfile will be moved or deleted as specified. A fourth choice
  481. allows you to choose from all subfiles records which match the search
  482. formula and collect them together into a single, specified, subfile. For
  483. example,you could use this option to send a specified set of records to
  484. subfile 2, another to subfile 3 and so on. If you have records distributed
  485. throughout the subfiles you could also gather them all together in subfile
  486. 0.
  487.  
  488. Operations from this window may be undone (to one level only) by clicking on
  489. the Undo button.
  490.  
  491. 2.5.7 Hiding sensitive data
  492. ---------------------------
  493. Your database might contain information which you don’t want just anyone to
  494. read. A field may be hidden by placing the caret in it and typing Ctrl Shift
  495. F9.  The text changes from black to mid-grey to tell you that something has
  496. been done to it.   If you subsequently type Ctrl Shift F2 all such fields
  497. will vanish. You can make them reappear (in mid grey) with Ctrl Shift F1 but
  498. they will always be invisible when the database is first opened. Ctrl Shift
  499. F9 has a toggle action: repeating the operation on a field removes the
  500. protection.
  501.  
  502. Whilst in the invisible state a field cannot be selected for printing (see
  503. 3.3.1). ADJUST has no effect and you can’t sneak round the protection by
  504. using Ctrl A to select all fields or by choosing a range containing the
  505. hidden field (i.e. by clicking with SELECT on an earlier field then
  506. double-clicking with ADJUST on a later one).  Its tag doesn’t appear in the
  507. Field entry of the main menu when you click MENU in the relevant place, nor
  508. does the field appear in the field list produced by typing Ctrl F. As soon
  509. as you reveal the data by typing Ctrl Shift F1 it can be printed as normal.
  510.  
  511. If you intend to use this facility you are strongly urged to
  512. password-protect your database (see Ch 11).  Only a user with Manager access
  513. rights will then be able to use Ctrl Shift F1, F2 and F9.  If you leave the
  514. database unprotected then anyone can use the key combinations and might
  515. easily discover  them by chance (or by reading this manual!).
  516.  
  517. 2.6  External fields
  518. ====================
  519. The data in External fields is not stored within the Database file but in
  520. separate files, one for each record, stored inside the database’s
  521. application directory. These files may be Text, Sprite or Draw files and can
  522. be linked to buttons on the record screen.  Clicking on these buttons loads
  523. the external file into Edit, Paint or Draw (provided that the relevant
  524. program has been “seen” by the filer.
  525.  
  526. It is also possible to link Text files to a Text block field which will
  527. actually display the text (with certain limitations) within a large icon.
  528. Sprites may be similarly displayed in a Picture field.
  529.  
  530. 2.6.1 Linking files to the fields
  531. ---------------------------------
  532. To link a file with an External field drag the file’s icon onto the record
  533. window and drop it on the appropriate field. For example, if the record
  534. includes a field represented by a Text button, i.e. one bearing a small
  535. version of the Edit icon, you may drop a Text file onto it. The button’s
  536. icon changes to the small version of the Text file icon to indicate that the
  537. file has been linked. Sprite and Draw files are linked in the same way and
  538. Powerbase will not allow the wrong type of file to be linked. A Text block
  539. field may also have a Text file dropped onto it.* The text (or as much of it
  540. as will fit inside the icon) is then displayed on the record window.  The
  541. formatting will not be the same as if you examine the text in Edit; lines
  542. are word-wrapped and centred within the display icon. This is a feature of
  543. multi-line RISC OS text icons. You can’t edit the text directly but it is
  544. possible to export the file for editing (see below). Sprite files may be
  545. dropped onto and displayed in a Picture field. Any new file dropped onto an
  546. External field which is already linked to a file simply replaces the old
  547. file with the new.
  548.  
  549. 2.6.2 Editing External fields
  550. -----------------------------
  551. You can’t edit an External field directly, only via an appropriate editing
  552. program such as Edit, Paint or Draw. As long as the editor has been “seen”
  553. by the filer clicking on the on-screen button with SELECT will load the file
  554. into the editor and display it. You can edit the file and re-save it without
  555. altering its name and it will remain associated with the same field of the
  556. record.  Text block and Picture files are loaded into their editors by a
  557. double click.
  558.  
  559. 2.6.3 Clearing and exporting field contents
  560. -------------------------------------------
  561. Clicking MENU over an External field makes available certain entries on the
  562. Field submenu which are shaded for other types of field. Remove external
  563. lets you delete the linked file from the database application. As deleting a
  564. file is rather drastic you would probably like to be warned when this is
  565. about to happen so the message “Delete object? Are you sure?” normally
  566. appears. Finally, Save contents on the Field submenu lets you export the
  567. linked field to a filer window or to another application.
  568.  
  569.